package com.xyulu.fallback;

import com.xyulu.fegin.UserClient;
import com.xyulu.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Author Xyulu
 * @Date 2021/11/8 23:01
 * @Version 1.0
 */
@Component
public class UserFallBack implements UserClient {
    @Override
    public User findUserById(Long id) {
        return null;
    }

    @Override
    public String testHystrix(Long id) {
        return "我是客户端的Hystrix服务实现!!!";
    }
}
